<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="laundryPayment.title"/></title>
    <meta name="heading" content="<fmt:message key='laundryPayment.heading'/>"/>
    <meta name="menu" content="RoleAdminLaundry"/>

</head>
<fieldset>
        <legend><fmt:message key="currentLaundry.currentLaundry"/></legend>
        <s:form id="laundryReportChoicedForm" action="choicedReportGeneralPeriod" method="post" validate="true">
        <s:hidden key="laundry.id" value="%{laundry.id}"/>
        <table>
          <tr><td>
                <table class="tableGrey" id="currentCut" >
                <thead>
                    <tr>
                        <th class="hidden"/>
                        <th><fmt:message key="laundry.name"/></th>
                        <th><fmt:message key="laundry.address"/></th>
                        <th class="hidden"/>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><s:property id="laundry.name" value="laundry.name"/></td>
                        <td><s:property id="laundry.address" value="laundry.address"/></td>
                    </tr>
                </tbody>
                </table>
                </td>
                <td>
                    <s:select list="periodPaymentLaundryList" name="choicedPerPayLaundry" listKey="id" listValue='stringInitDateEndDate'
                                  headerKey="-1" headerValue="- Select please -" />
                </td>
          </tr>
        </table>
        <s:submit cssClass="button" method="generateReport" key="button.generateReport" theme="simple"/>
        </s:form>
        <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/laundrylist.html"/>'"
           value="<fmt:message key="button.done"/>"/>
 </fieldset>

<fieldset>
    <input type="button" style="margin-right: 5px"
           onclick="location.href='<c:url value="/asignNewPaymentLaundry.html"/>'"
           value="<fmt:message key="button.add"/>"/>
    <br/>
    <br/>
        <display:table name="listRowEntries"  class="table" id="listRowEntries" export="true" requestURI="" pagesize="25">
           <display:column property="id" sortable="true" href="choicedReportGeneralPeriod.html"
                           paramId="id" paramProperty="id" titleKey="rowEntry.id"/>
           <display:column property="date" sortable="true" titleKey="rowEntry.date"/>
           <display:column property="entry" sortable="true" titleKey="rowEntry.entry"/>
           <display:column property="payment" sortable="true" titleKey="rowEntry.payment"/>
           <display:column property="balance" sortable="true" titleKey="rowEntry.balance"/>

        </display:table>
 </fieldset>